<p class="state-bar" ng-init="$parent.search.state=''" ng-if="!$parent.waiting&&page.data.length>0">
    <input type="radio" name="state" checked ng-model="search.state" value="">&nbsp;所有状态
    <input type="radio" name="state" ng-model="$parent.search.state" value="征集中">&nbsp;征集中
    <input type="radio" name="state" ng-model="$parent.search.state" value="对接中">&nbsp;对接中
    <input type="radio" name="state" ng-model="$parent.search.state" value="签约中">&nbsp;签约中
    <input type="radio" name="state" ng-model="$parent.search.state" value="已成功">&nbsp;已成功
</p>
<div class="panel" ng-repeat="project in page.data|filter:search:state" ng-if="project.processes.length>0">
    <div class="panel-head clearfix">
        <div class="col-xs-4">
            <p ng-bind="'项目编号：'+project.demand.sn"></p>
            <p ng-bind="'解决方案：'+project.processes.length"></p>
            <p style="margin-bottom: 0"
               ng-bind="'项目经理：'+project.demand.projectManager.name+'  '+project.demand.projectManager.mobile"></p>
        </div>
        <a class="col-xs-8 demand-name" ui-sref="meta.demand.detail({demandId:project.demandId})" target="_blank">
            <p>技术需求</p>
            <p ng-bind="project.demand.title"></p>
            <p class="list-row">
                        <span ng-bind="'领域：'+project.demand.areas.join('/')" style="margin-right: 25px"
                              ng-show="project.demand.areas.length>0"></span>
                        <span>
                            <!--<span class="glyphicon"></span>-->
                            <span style="margin-right: 25px" ng-bind="'诚意金金额：'+project.demand.earnestMoney+'元'"
                                  ng-show="project.demand.earnestMoney">诚意金金额：</span>
                        </span>
                <span ng-bind="'地区：'+project.demand.enterpriseInfo.province">地区：</span>
            </p>
        </a>
    </div>
    <div class="panel-bodies" ng-if="project.processes" ng-repeat="process in project.processes track by $index">
        <span class="hr-name" ng-bind="'解决方案'+($index+1)"></span>
        <hr/>
        <!--惨遭拒绝-->
        <div class="panel-body" style="height: 90px" ng-if="process.canceled">
            <div class="col-xs-4 left">
                <div class="progress-body" style="height:90px;display: table">
                    <div class="container">
                        <p class="progress-title" style="color:#1f86ed;border-bottom: none;font-weight: 600;font-size: 16px">已婉拒</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-8 right">
                <a ui-sref="meta.technology.detail({technologyId:process.technologyId})" target="_blank">
                    <p class="subhead" style="margin-top: 18px">解决方案</p>
                    <p class="title" ng-bind="process.technology.title">标题</p>
                </a>
            </div>
        </div>
        <!--通过审核-->
        <div class="panel-body" style="height: 90px" ng-if="!process.canceled">
            <div class="col-xs-4 left">
                <div class="progress-body" style="height:90px;display: table">
                    <div class="container">
                        <p class="progress-title" style="color:#1f86ed;border-bottom: none;font-weight: 600;font-size: 16px"
                           ng-bind="process.state||'正在审核'">项目状态</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-8 right">
                <a ui-sref="meta.technology.detail({technologyId:process.technologyId})" target="_blank">
                    <p class="subhead" style="margin-top: 18px">解决方案</p>
                    <p class="title" ng-bind="process.technology.title">标题</p>
                </a>
            </div>
        </div>
        <!--已成功-->
        <div class="panel-body" style="height: 90px" ng-if="(process.state|stateJudgment:'已完成':'已完成')">
            <div class="col-xs-4 left">
                <div class="progress-body" style="height:90px;display: table">
                    <div class="container">
                        <p class="progress-title"
                           style="color:#1f86ed;border-bottom: none;font-weight: 600;font-size:16px">已成功</p>
                    </div>
                </div>
            </div>
            <div class="col-xs-8 right">
                <a ui-sref="meta.technology.detail({technologyId:process.technologyId})" target="_blank">
                    <p class="subhead" style="margin-top: 18px">解决方案</p>
                    <p class="title" ng-bind="process.technology.title">标题</p>
                </a>
            </div>
        </div>
    </div>
</div>

<div ng-if="!$parent.waiting&&page.data.length<1">
    <h4 style="margin: 30px 0">您暂无关联的项目</h4>
    <a class="btn btn-primary" ui-sref="meta.demand.apply.step.one">发布技术需求</a>
</div>
